import  xlrd

class  Calc:

    def get_data(self,file,index):
        book = xlrd.open_workbook(filename=file)
        st = book.sheet_by_index(index)
        lengh1 = len(st.col_values(0)[:])
        data = []
        for i in range(1, lengh1):
            data.append(st.row_values(i)[:3])
        return data

    def add(self,a,b):
        return a + b

    def minus(self,a,b):
        return a - b

    def multi(self,a,b):
        return a  * b


    def  devision(self,a,b):
        return a / b







